(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/compose-coupon/index" ], {
    "2224e": function(e, n, t) {
        t.d(n, "b", function() {
            return a;
        }), t.d(n, "c", function() {
            return r;
        }), t.d(n, "a", function() {});
        var a = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    "4bda": function(e, n, t) {
        (function(e, n) {
            var a = t("4ea4").default;
            t("6cdc");
            var r = a(t("67f5"));
            e.__webpack_require_UNI_MP_PLUGIN__ = t, n(r.default);
        }).call(this, t("bc2e").default, t("543d").createPage);
    },
    "67f5": function(e, n, t) {
        t.r(n);
        var a = t("2224e"), r = t("f54d");
        for (var o in r) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return r[e];
            });
        }(o);
        var i = t("f0c5"), u = Object(i.a)(r.default, a.b, a.c, !1, null, "d811b9bc", null, !1, a.a, void 0);
        n.default = u.exports;
    },
    abbf: function(e, n, t) {
        (function(e) {
            var a = t("4ea4").default;
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var r = a(t("a34a")), o = a(t("c973")), i = t("0490"), u = a(t("f977")), c = a(t("ef7a")), s = t("3be3"), l = t("5dc1"), d = t("e6e8"), f = t("665c"), p = t("fd0e"), v = t("05dc"), h = t("39bc"), m = t("46e6"), b = t("b70e"), w = {
                setup: function(n, t) {
                    var a = {
                        share: function() {},
                        show: function() {},
                        hide: function() {},
                        resize: function() {},
                        shareTimeline: function() {},
                        addToFavorites: function() {},
                        h5ShareContent: {}
                    }, w = (0, m.useAsyncLoadRetry)(function(e) {
                        return z.apply(this, arguments);
                    }), g = w.tryLoad, _ = w.retry, T = (0, p.ref)((0, b.createPromiseEvent)());
                    var x = (0, p.ref)(!1), y = (0, p.ref)(!1), k = (0, p.reactive)({
                        options: {}
                    }), L = ((0, f.useState)().coupeConfig, (0, f.useGetters)()), P = L.isLogined, S = L.frameCity;
                    function z() {
                        return (z = (0, o.default)(r.default.mark(function e(n) {
                            return r.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    return k.options = n, e.next = 3, T.value.promise;

                                  case 3:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }))).apply(this, arguments);
                    }
                    (0, d.onTabItemTap)(function(e) {
                        (0, v.statistics)("homepage_bottom_tab", {
                            module_name: e.text
                        });
                    }), (0, d.onAddToFavorites)(function() {
                        return null == a ? void 0 : a.addToFavorites();
                    }), (0, d.onShareTimeline)(function() {
                        return null == a ? void 0 : a.shareTimeline();
                    }), (0, d.onResize)(function() {
                        a.resize && a.resize();
                    }), (0, d.onShow)((0, o.default)(r.default.mark(function e() {
                        return r.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                if (y.value) {
                                    e.next = 2;
                                    break;
                                }
                                return e.abrupt("return");

                              case 2:
                                H();

                              case 3:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))), (0, d.onUnload)(function() {
                        y.value = !1;
                    }), (0, d.onHide)(function() {
                        a.hide && a.hide();
                    }), (0, d.onReady)((0, o.default)(r.default.mark(function e() {
                        return r.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return console.timeEnd("appLaunch"), e.next = 3, j();

                              case 3:
                                return y.value = !0, e.next = 6, H();

                              case 6:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))), (0, p.watch)(function() {
                        return P.value;
                    }, function(e) {
                        e || (l.isLoad.value = !1);
                    }), (0, p.watch)(function() {
                        return S.value.city_id;
                    }, function() {
                        l.isLoad.value = !1;
                    });
                    var C = {};
                    function j() {
                        return F.apply(this, arguments);
                    }
                    function F() {
                        return (F = (0, o.default)(r.default.mark(function e() {
                            var n, t, a;
                            return r.default.wrap(function(e) {
                                for (;;) switch (e.prev = e.next) {
                                  case 0:
                                    if (t = null === (n = k.options) || void 0 === n ? void 0 : n.query) try {
                                        a = JSON.parse(decodeURIComponent(t)), l.couponTabParams.value = a;
                                    } catch (e) {
                                        e = VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.handleException(e);
                                        l.couponTabParams.value = {};
                                    }

                                  case 2:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }))).apply(this, arguments);
                    }
                    function H() {
                        return O.apply(this, arguments);
                    }
                    function O() {
                        return (O = (0, o.default)(r.default.mark(function n() {
                            return r.default.wrap(function(n) {
                                for (;;) switch (n.prev = n.next) {
                                  case 0:
                                    if (!x.value || !h.switchH5.value) {
                                        n.next = 4;
                                        break;
                                    }
                                    return e.switchTab({
                                        url: "/pages/home/index"
                                    }), x.value = !1, n.abrupt("return");

                                  case 4:
                                    return x.value = !0, n.next = 7, i.coupeConfigGot.promise.catch(function() {
                                        l.isLoad.value = !0;
                                    });

                                  case 7:
                                    if (!h.switchH5.value) {
                                        n.next = 10;
                                        break;
                                    }
                                    return e.navigateTo({
                                        url: "/pages/adWebview/index?targetUrl=".concat(encodeURIComponent(h.urlWithParams.value))
                                    }), n.abrupt("return");

                                  case 10:
                                    l.isLoad.value = !0, a.show && a.show();

                                  case 12:
                                  case "end":
                                    return n.stop();
                                }
                            }, n);
                        }))).apply(this, arguments);
                    }
                    return (0, d.onShareAppMessage)(function() {
                        return h.switchH5.value ? C : {
                            title: "领券中心",
                            path: "/pages/compose-coupon/index",
                            promise: a.share.apply(a, arguments)
                        };
                    }), {
                        isLoad: l.isLoad,
                        tryLoad: g,
                        retry: _,
                        onSubPackLoaded: function() {
                            T.value.resolve();
                        },
                        init: function(n) {
                            var t, r, o, i, l = (null == n || null === (t = n.detail) || void 0 === t || null === (r = t.__args__) || void 0 === r || null === (o = r[0]) || void 0 === o ? void 0 : o.detail) || {};
                            null == l || null === (i = l.init) || void 0 === i || i.call(l, {
                                uni: e,
                                watchDog: c.default,
                                request: u.default,
                                showToast: this.$toast,
                                loading: this.$loading,
                                sensorTrack: this.$statistics,
                                navigateToWeb: s.jumpActH5,
                                jumpMiniProgram: s.jumpMiniProgram
                            }), l.share && (a.share = l.share), l.show && (a.show = l.show), l.hide && (a.hide = l.hide), 
                            l.resize && (a.resize = l.resize), l.shareTimeline && (a.shareTimeline = l.shareTimeline), 
                            l.addToFavorites && (a.addToFavorites = l.addToFavorites);
                        },
                        setH5ShareContent: function(e) {
                            var n, t;
                            C = (null == e || null === (n = e.detail) || void 0 === n || null === (t = n.__args__) || void 0 === t ? void 0 : t[0]) || {};
                        }
                    };
                }
            };
            w.components = Object.assign({
                ErrorPage: function() {
                    Promise.all([ t.e("common/vendor"), t.e("components/error/error") ]).then(function() {
                        return resolve(t("2a89"));
                    }.bind(null, t)).catch(t.oe);
                }
            }, w.components);
            var g = w;
            n.default = g;
        }).call(this, t("543d").default);
    },
    f54d: function(e, n, t) {
        t.r(n);
        var a = t("abbf"), r = t.n(a);
        for (var o in a) [ "default" ].indexOf(o) < 0 && function(e) {
            t.d(n, e, function() {
                return a[e];
            });
        }(o);
        n.default = r.a;
    }
}, [ [ "4bda", "common/runtime", "common/vendor" ] ] ]);